//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { GuestUsers, GuestUsersResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooGuestUsersList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<GuestUsersResponse>(`/uctoo/guest_users/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooGuestUsers = async (id: string) => {
  return requestClient.get<GuestUsers>(`/uctoo/guest_users/${id}`);
};

export const adductooGuestUsers = async (data: Partial<GuestUsers>) => {
  return requestClient.post<GuestUsers>('/uctoo/guest_users/add', data);
};

export const edituctooGuestUsers = async (data: Partial<GuestUsers>) => {
  return requestClient.post<GuestUsers>('/uctoo/guest_users/edit', data);
};

export const deleteuctooGuestUsers = async (id: string) => {
  return requestClient.post<any>('/uctoo/guest_users/del', { id });
};
